package com.ufm.security.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.ufm.security.pojo.Roles;
import com.ufm.security.pojo.TablesAndRoles;
@Repository  
@Transactional
public interface RolesMapper {
	public List<Roles> findAll(Map params);
	public List<Roles> findByUserId(int userId);
	public Roles findById(int id);
	public void delete(int id);
	public void update(Roles roles);
	public int countUserUsed(int id);
	public void deleteRolesRight(int id);
}
